package com.web.service;

import com.github.pagehelper.PageInfo;
import com.web.entity.SportRecord;

import java.util.List;

public interface SportRecordService {

    public List<SportRecord> getByUserIdAndDate(SportRecord sportRecord);

    public PageInfo<SportRecord> list(Integer page, Integer pageSize, SportRecord sportRecord);

    public SportRecord findById(Integer sportId);

    public void add(SportRecord sportRecord);

    public void update(Integer sportId, SportRecord sportRecord);

    public void delete(Integer sportId);

    public PageInfo<SportRecord> byUserId(Integer page, Integer pageSize, Integer userId);

    public PageInfo<SportRecord> byDoctorId(Integer page, Integer pageSize, Integer doctorId);
}
